<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>

<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-body">
                <form ng-submit="searchRe()" class="form-horizontal">
                    <div class="form-group center">
                        <div class="col-md-2">
                            <input type="text" class="form-control" placeholder="请输入公司名称" ng-model="param.companyName">
                        </div>
                        <div class="col-md-2">
                            <select class="form-control " ng-model="param.cotype" >
                                <option value="">--身份类型--</option>
                                <option value="1">我要投广告</option>
                                <option value="2">我有广告位</option>
                            </select>
                        </div>

                        <div class="col-sm-2">
                            <input type="text" ng-model="param.startTime" placeholder="开始提交时间"  id="startTime" class="form-control" onclick="laydate({istime: true, format: 'YYYY-MM-DD', start: laydate.now(0, 'YYYY-MM-DD')})"/>
                        </div>
                        <div class="col-sm-2">
                            <input type="text" ng-model="param.endTime" placeholder="结束提交时间"  id="endTime" class="form-control" onclick="laydate({istime: true, format: 'YYYY-MM-DD', start: laydate.now(0, 'YYYY-MM-DD')})"/>
                        </div>
                        <div class="col-md-1">
                            <label class="col-sm-1 control-label"><button class="ifc-btn btn-primary" type="submit">查 询</button></label>
                        </div>
                        <div class="col-md-1">
                            <label class="col-sm-1 control-label"><button class="ifc-btn btn-dark" type="button" ng-click="clearSearch()">清 空</button></label>
                        </div>
                    </div>
                </form>
            </div>
            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>公司名称</th>
                        <th>联系人</th>
                        <th>身份类型</th>
                        <th>联系电话</th>
                        <th>Email</th>
                        <th>网址</th>
                        <th>提交日期</th>
                        <th>需求描述</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in pageInfo.records">
                        <td class="v-middle">{{item.id}}</td>
                        <td class="v-middle">{{item.companyName}}</td>
                        <td class="v-middle">{{item.person}}</td>
                        <td class="v-middle">
                            <span ng-if="item.type=='1'">我要投广告</span>
                            <span ng-if="item.type=='2'">我有广告位</span>
                        </td>
                        <td class="v-middle">{{item.phone}}</td>
                        <td class="v-middle">{{item.email}}</td>
                        <td class="v-middle">{{item.companyUrl}}</td>

                        <td class="v-middle">{{item.createTime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                        <td class="v-middle">
                            <!--<a ui-sref="main.plat.cooper.detail({id: item.id})" class="">
                                <i class="fa fa-edit m-r-xs text-sm"></i>详情</a>-->
                         <button type="button" class="btn btn-sm btn-default"  ng-click="preview(item.id)" >详情</button></label>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div><!-- /.table-responsive -->

            <!-- 底部分页 -->
            <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div><!-- /.panel -->
    </div><!-- /.wrapper-data -->

</div><!-- /.wrapper-md -->
<div class="cover" ng-show="firstApply">
    <div class="firstApplyWrap">
         <div class="title" style="margin-bottom: 20px;"><div style="float: left;">需求详情 </div> <div class="clear" style="float: right"><i class="iconfont closeBtn noselect" ng-click="firstApply=false">&#xe608;</i></div></div>
        <div class="title" style="margin-top: 15px;"><textarea  style="padding-top: 20px;" class="form-control" rows="5" id="remark">{{record.description}}</textarea>
            <div class="title">
            <button type="button" class="btn btn-info w-xs m-l-xl "  ng-click="firstApply=false" >关闭</button>
            </div>

        </div>

    </div>
</div>
<style>
    .cover {
        position: fixed;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 2000;
        top: 0;
        left: 0;
        /* display: none; */
    }

    .firstApplyWrap{
        width: 550px;
        height:280px;
        background: #fff;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
        -o-transform: translate(-50%,-50%);
        -moz-transform: translate(-50%,-50%);
        border-radius: 5px;
        overflow: hidden;
    }
    .firstApplyWrap .title{
        font-size: 18px;
        color:#333;
        padding:18px 36px 0 36px;
        text-align: center;
        line-height: 2em;
    }
    .firstApplyWrap .closeBtn,.finishData .closeBtn{
        font-size: 30px;
        padding:5px 10px 0 0;
        border-radius: 50%;
        color: #ccc;
        float: right;
        cursor: pointer;
    }
    .finishData .closeBtn{
        position: absolute;
        top:10px;
        right:10px;
    }
    .firstApplyWrap .bkgIcon{
        position: absolute;
        left: 54px;
        top:87px;
        font-size: 50px;
        color:#FFB136;
    }
    .firstApplyWrap .applyBtnWrap{
        position: absolute;
        bottom: -2px;
        width: 100%;
    }
    .firstApplyWrap .applyBtn{
        width: 50%;
        height:70px;
        line-height: 70px;
        background: #FFB135;
        font-size: 20px;
        text-align: center;
        color:#fff;
        cursor: pointer;
        float:left;
    }
    .firstApplyWrap .applyBtn:last-child{
        background: #5796FC;
    }
</style>
